package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.PartnerGradListeDto;
import com.huaxiafinance.management.model.PartnerGrade;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PartnerGradeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PartnerGrade record);

    int insertSelective(PartnerGrade record);

    PartnerGrade selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PartnerGrade record);

    int updateByPrimaryKey(PartnerGrade record);

    List<Map> selectIdName();



    PartnerGrade selectLastId();

    List<PartnerGrade> selectList(PartnerGradListeDto dto);

    int getCount(PartnerGradListeDto dto);


    List<PartnerGrade> selectAllPartnerGrade();


    PartnerGrade selectMinGrade();

    Integer selectGradeSequence(@Param("gradeId")Integer gradeId);

    Integer nextGradeId(@Param("gradeSequence")Integer gradeSequence,@Param("gradeId")Integer gradeId);

}